package com.udata.server.service.impl;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.udata.client.service.UserService;
import com.udata.server.dao.UserDao;
import com.udata.shared.exception.OperationException;
import com.udata.shared.model.UserB;

public class UserServiceImpl extends RemoteServiceServlet implements
		UserService {

	@Override
	public UserB save(UserB userB) throws OperationException {
		return UserDao.getInstace().save(userB);
	}

	@Override
	public UserB getUser(String userId, String password)
			throws OperationException {
		return UserDao.getInstace().getUser(userId, password);
	}

}
